]> dgit.raspbian.org Git - gnome-shell.git/commit
st: Only consider visible children for :first/:last-child
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 27 Nov 2018 01:21:37 +0000 (02:21 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Sat, 2 Mar 2019 12:19:40 +0000 (12:19 +0000)
commit4d0a742d64bd7e47015ef23b443d9d32e9225313
treede6566117c09ff60b4ca7ee6e0ab3de40747d97f
parent5f4e0e5ff87031616e793d3e3543ce0412f6b377
st: Only consider visible children for :first/:last-child

While mapping the :first/:last-child pseudo classes directly to the
ClutterActor:first-child/:last-child properties allows for an easy
implementation, it is unexpected that rules can appear to not have
an effect because the selected child is hidden. GTK's behavior of
applying the classes to visible children makes much more sense, so
change our implementation to do the same.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/312
src/st/st-widget.c